package com.utn.tp.integrador.controlador;

import android.content.Context;

public class ControladorLogsSingleton {
	private ControladorLogs controller = null;
	private static ControladorLogsSingleton controllerSingleton = null;

	private ControladorLogsSingleton(Context context) {
		controller = new ControladorLogs(context);
	}

	private static void createInstance(Context context) {
		if (controllerSingleton == null)
			controllerSingleton = new ControladorLogsSingleton(context);
	}

	public static ControladorLogsSingleton getInstance(Context context) {
		if (controllerSingleton == null)
			createInstance(context);

		return controllerSingleton;
	}

	public ControladorLogs getControlador() {
		return controller;
	}
}
